package BUS;

import android.database.Cursor;
import DAO.NotesDAO;

public class NotesBUS {
	public static long createNotes(String title, String date, String body,String urlFolder)
	{
		return NotesDAO.createNote(title, date, body,urlFolder);
	}
	
	public static boolean deleteNote(long rowId) {
        return NotesDAO.deleteNote(rowId);
    }

    public static Cursor fetchAllNotes() {

        return NotesDAO.fetchAllNotes();
    }

    public static Cursor fetchNote(long rowId)
    {
        return NotesDAO.fetchNote(rowId);
    }
    public static boolean updateNote(long rowId, String title, String date,
    		String body,String urlFolder) {
        return NotesDAO.updateNote(rowId, title, date, body,urlFolder);
    }
    public static Cursor getNote(String name)
    {
    	return NotesDAO.getNote(name);
    }
}
